JavaScript
big data 标签描述

Django工程-ORM模型数据库操作 下面以用户和图书表模型进行ORM的基本操作使用ORM模型介绍 1.增加 通过模型类.objects.create()保存。 >>>Users.objects.create( hname='zhangsan', hgender=0, hbook=book ) <UserInfo:张三> 2.删除 模型类.objects.filter().delete() Users.objects.filter(id=14).delete() 3.修改 使用模型类.objects.filter().update(),会返回受影响的行...